#include "head.hpp"
int son_main(int local_socket)
{
    while (true)
    {
        int net_fd;
        int flag;
        local_recv(local_socket, &net_fd, &flag);
        if (flag == -1)
        {
            exit(1);
        }
        do_worker(net_fd);
        close(net_fd);
        send(local_socket, "123", 3, 0);
    }
    return 0;
}